package com.itheima.cart.feign;

import com.itheima.goods.pojo.Dish;
import com.itheima.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "sky-goods")
public interface DishClient {

    @GetMapping("/admin/dish/{dishId}")
    Result<Dish> findByDishId(@PathVariable Long dishId);
}
